package com.baidb.service2.service;

import com.baidb.service2.feign.FeignHeadersInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author baidb
 * @date 2021/6/16.
 */
@FeignClient(name = "baidb-service1", path = "/api", configuration = {FeignHeadersInterceptor.class})
public interface ServiceApi {

    @GetMapping("/demo")
    String demo();

}
